Hello,
Zabbix : 6.0.7
Agent (v1): 6.0.7
template : 0.41 (default one provided with Zabbix 6.0.7)
I am new with this template, I was using before pg_monz to monitor my PostgreSQL DBs but since they stop support for it I turned to give a try with the default official template.
As many of you I have faced the problem with the Status: Ping time but I my case I had 2 problems: first of all it was because the Time was returned with a coma and not a dot and second with the multiplier.
So here is how I fix this:
First dot and comma problem is fixed by changing the first preprocessing step.
step 1: From Time:\s+(\d+\.\d+)\s+ms to Time:\s+(\d+[\.,]\d+)\s+ms
with this both dot and comma are taken into consideration.
Then I need to add a step 2: that will turn the comma into a dot:
So I used the replace feature and has parameter I entered , (comma) and as replacement I put a . (dot).
Now I have the Status: Ping time fully working.
Hope this can help others.
Zabbix : 6.0.7
Agent (v1): 6.0.7
template : 0.41 (default one provided with Zabbix 6.0.7)
I am new with this template, I was using before pg_monz to monitor my PostgreSQL DBs but since they stop support for it I turned to give a try with the default official template.
As many of you I have faced the problem with the Status: Ping time but I my case I had 2 problems: first of all it was because the Time was returned with a coma and not a dot and second with the multiplier.
So here is how I fix this:
First dot and comma problem is fixed by changing the first preprocessing step.
step 1: From Time:\s+(\d+\.\d+)\s+ms to Time:\s+(\d+[\.,]\d+)\s+ms
with this both dot and comma are taken into consideration.
Then I need to add a step 2: that will turn the comma into a dot:
So I used the replace feature and has parameter I entered , (comma) and as replacement I put a . (dot).
Now I have the Status: Ping time fully working.
Hope this can help others.
Comment